package com.yang.Offer;

public class Offer28 {
}
class Offer28Solution {
    // 一次AC 真爽 虽然是简单题目
    /*public boolean isSymmetric(TreeNode root) {
        if(root == null){
            return true;
        }
        return compare(root.left, root.right);
    }
    private boolean compare(TreeNode leftNode, TreeNode rightNode){
        if(leftNode == null && rightNode == null){
            return true;
        }

        if((leftNode == null || rightNode == null) || leftNode.val != rightNode.val){
            return false;
            return false;
        }

        return compare(leftNode.left, rightNode.right) && compare(leftNode.right, rightNode.left);
    }*/
}
